import request from '@/utils/request'

//获取列表数据
export function getbranchList(data){
    return request({
        url: 'school/branch',
        method: 'get',
        params:data
      })
}

//新增分校
export function addbranchData(data){
    return request({
        url: 'school/addbranch',
        method: 'post',
        data,
        headers:{
          'showLoading':false
        }
      })
}

//删除
export function deletebranch(data){
    return request({
        url: 'school/deletebranch',
        method: 'delete',
        data,
        headers:{
          'showLoading':false
        }
    })
}

//编辑
export function editbranch(data){
    return request({
        url: 'school',
        method: 'get',
        params:data,
        headers:{
          'showLoading':false
        }
    })
}

//修改编辑
export function upeditinfo(data){
    return request({
        url: 'school/updatebranch',
        method: 'put',
        data,
        headers:{
          'showLoading':false
        }
      })
}
